from django.conf.urls import url

from homes import views

urlpatterns = [
    # 获取城区
    url(r'^areas/$', views.AreaView.as_view()),
    # 发布房源
    url(r'^houses$', views.HousesView.as_view()),
    # 我的房屋列表
    url(r'^user/houses$', views.UserHouseView.as_view()),
    # 房源图片上传
    url(r'^houses/(?P<house_id>\d+)/images$', views.HouseImageView.as_view()),
    # 首页房屋推荐
    url(r'^houses/index$', views.HouseIndexView.as_view()),
    # 房屋详情
    url(r'^houses/(?P<house_id>\d+)$', views.HouseDetail.as_view()),

]